<h1>Reporte de Efectivo</h1>
<table >
    <tr>
        <th>Total Facturas</th>
        <th>Total Notas</th>
        <!-- <th>Pago</th>-->
        <th>Total Depositos</th>
        <th>Notas + Depositos</th>
        <th>Total Faltante</th>
    </tr>
    <?php
    include_once '../../models/Factura.php';
    include_once '../../models/Nota.php';
    include_once '../../models/Deposito.php';
    
    $strFactura = "";
    
    $totalFacts = new Factura(null, null, null, null);
    $totalNots = new Nota(null, null, null, null, null);
    $totalDeps = new Deposito(null, null, null, null);
    
    $totalFacts = $totalFacts->obtenerTotalFacturas();
    
    $totalDeps = $totalDeps->obtenerTotalDepositos();
    
    $totalNots = $totalNots->obtenerTotalNotas();

    $strFactura .= '<tr>';
    
    $strFactura .= "<td>".$totalFacts."</td>";
    $strFactura .= "<td>".$totalNots."</td>";
    $strFactura .= "<td>".$totalDeps."</td>";
    
    $strFactura .= "<td>".( $totalDeps + $totalNots)."</td>";
    
    $strFactura .= "<td>".( $totalFacts - ($totalDeps + $totalNots))."</td>";
    
    $strFactura .= '</tr>';
    
    echo $strFactura;
    ?>  
</table>